package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.ZzxxAnswerRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZzxxAnswerRecordMapper;
import com.ruoyi.system.service.IZzxxAnswerRecordService;

/**
 * 学生做题记录表Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-20
 */
@Service
public class ZzxxAnswerRecordServiceImpl implements IZzxxAnswerRecordService 
{
    @Autowired
    private ZzxxAnswerRecordMapper zzxxAnswerRecordMapper;

    /**
     * 查询学生做题记录表
     * 
     * @param id 学生做题记录表主键
     * @return 学生做题记录表
     */
    @Override
    public ZzxxAnswerRecord selectZzxxAnswerRecordById(Long id)
    {
        return zzxxAnswerRecordMapper.selectZzxxAnswerRecordById(id);
    }

    /**
     * 查询学生做题记录表列表
     * 
     * @param zzxxAnswerRecord 学生做题记录表
     * @return 学生做题记录表
     */
    @Override
    public List<ZzxxAnswerRecord> selectZzxxAnswerRecordList(ZzxxAnswerRecord zzxxAnswerRecord)
    {
        return zzxxAnswerRecordMapper.selectZzxxAnswerRecordList(zzxxAnswerRecord);
    }

    /**
     * 新增学生做题记录表
     * 
     * @param zzxxAnswerRecord 学生做题记录表
     * @return 结果
     */
    @Override
    public int insertZzxxAnswerRecord(ZzxxAnswerRecord zzxxAnswerRecord)
    {
        return zzxxAnswerRecordMapper.insertZzxxAnswerRecord(zzxxAnswerRecord);
    }

    /**
     * 修改学生做题记录表
     * 
     * @param zzxxAnswerRecord 学生做题记录表
     * @return 结果
     */
    @Override
    public int updateZzxxAnswerRecord(ZzxxAnswerRecord zzxxAnswerRecord)
    {
        return zzxxAnswerRecordMapper.updateZzxxAnswerRecord(zzxxAnswerRecord);
    }

    /**
     * 批量删除学生做题记录表
     * 
     * @param ids 需要删除的学生做题记录表主键
     * @return 结果
     */
    @Override
    public int deleteZzxxAnswerRecordByIds(Long[] ids)
    {
        return zzxxAnswerRecordMapper.deleteZzxxAnswerRecordByIds(ids);
    }

    /**
     * 删除学生做题记录表信息
     * 
     * @param id 学生做题记录表主键
     * @return 结果
     */
    @Override
    public int deleteZzxxAnswerRecordById(Long id)
    {
        return zzxxAnswerRecordMapper.deleteZzxxAnswerRecordById(id);
    }
}
